﻿@model IFDB.ViewModels.PageViewModels.Membership.LoginModel
@{
    ViewBag.Title = "Log in";
}

<div class="clear"></div>
<div class="grid_12">

    <section id="loginForm">
        @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>Use an account to login.</legend>
                <div>
                    @Html.LabelFor(m => m.UserName)
                </div>
                <div>
                    @Html.TextBoxFor(m => m.UserName)
                </div>
                <div class="validation-error">
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>
                <div>
                    @Html.LabelFor(m => m.Password)
                </div>
                <div>
                    @Html.PasswordFor(m => m.Password)
                </div>
                <div class="validation-error">
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
                <div>
                    @Html.CheckBoxFor(m => m.RememberMe)
                </div>
                <div>
                    @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
                </div>
                <div>
                    <input type="submit" value="Log in" />
                </div>
            </fieldset>
            <p>
                @Html.ActionLink("Register", "Register") if you don't have an account.
            </p>
        }
    </section>

</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
